package com.lemeng.controller.order;

import com.alibaba.dubbo.config.annotation.Reference;
import com.lemeng.entity.Result;
import com.lemeng.pojo.CategoryReport;
import com.lemeng.service.CategoryReportService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("categoryReport")
public class CategoryReportController {


    @Reference
    CategoryReportService categoryReportService;


    @GetMapping("findList")
    public List<CategoryReport> findList(String date1,String date2) {
        return categoryReportService.findList(date1,date2);
    }

    @GetMapping("initAddAllData")
    public Result initAddAllData() {
        categoryReportService.initAddAllData();
        return new Result();
    }



}
